package com.sophossystems.client.asmon.dto;

import java.io.Serializable;


/** 
 * This class represents the primary key of the CLIENTE_P_MORALES table.
 */
public class ClientePMoralesPkDTO implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = -4179814237035498696L;

	protected int idCliente;

	/** 
	 * This attribute represents whether the primitive attribute idCliente is null.
	 */
	protected boolean idClienteNull;

	/** 
	 * Sets the value of idCliente
	 */
	public void setIdCliente(int idCliente)
	{
		this.idCliente = idCliente;
	}

	/** 
	 * Gets the value of idCliente
	 */
	public int getIdCliente()
	{
		return idCliente;
	}

	/**
	 * Method 'ClientePMoralesPk'
	 * 
	 */
	public ClientePMoralesPkDTO()
	{
	}

	/**
	 * Method 'ClientePMoralesPk'
	 * 
	 * @param idCliente
	 */
	public ClientePMoralesPkDTO(final int idCliente)
	{
		this.idCliente = idCliente;
	}

	/** 
	 * Sets the value of idClienteNull
	 */
	public void setIdClienteNull(boolean idClienteNull)
	{
		this.idClienteNull = idClienteNull;
	}

	/** 
	 * Gets the value of idClienteNull
	 */
	public boolean isIdClienteNull()
	{
		return idClienteNull;
	}

	/**
	 * Method 'equals'
	 * 
	 * @param _other
	 * @return boolean
	 */
	@Override
	public boolean equals(Object _other)
	{
		if (_other == null) {
			return false;
		}
		
		if (_other == this) {
			return true;
		}
		
		if (!(_other instanceof ClientePMoralesPkDTO)) {
			return false;
		}
		
		final ClientePMoralesPkDTO _cast = (ClientePMoralesPkDTO) _other;
		if (idCliente != _cast.idCliente) {
			return false;
		}
		
		if (idClienteNull != _cast.idClienteNull) {
			return false;
		}
		
		return true;
	}

	/**
	 * Method 'hashCode'
	 * 
	 * @return int
	 */
	@Override
	public int hashCode()
	{
		int _hashCode = 0;
		_hashCode = 29 * _hashCode + idCliente;
		_hashCode = 29 * _hashCode + (idClienteNull ? 1 : 0);
		return _hashCode;
	}

	/**
	 * Method 'toString'
	 * 
	 * @return String
	 */
	@Override
	public String toString()
	{
		StringBuffer ret = new StringBuffer();
		ret.append( "com.sophossystems.client.asmon.dto.ClientePMoralesPk: " );
		ret.append( "idCliente=" + idCliente );
		return ret.toString();
	}

}
